package com.itheima.ydd.mapper;

import com.itheima.ydd.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    @Select("select menu_id from sys_role_menu where role_id = #{id}")
    List<String> getMenu(String id);
}
